package com.xiyuan.smartutils.domain.date;


import com.xiyuan.smartutils.enums.DateDimensionEnum;

/**
 * 时间维度对象
 *
 * @author xiyuan-lgz 2025-08-04 @version v1.0.0 新建与整理
 */

public class DateDimension {
    private String key;
    private DateRange range;
    private DateDimensionEnum dimension;
    
    public DateDimension() {}
    
    public DateDimension(String key, DateRange range) {
        this.key = key;
        this.range = range;
    }
    
    public String getKey() {
        return key;
    }
    
    public void setKey(String key) {
        this.key = key;
    }
    
    public DateRange getRange() {
        return range;
    }
    
    public void setRange(DateRange range) {
        this.range = range;
    }
    
    public DateDimensionEnum getDimension() {
        return dimension;
    }
    
    public DateDimension setDimension(DateDimensionEnum dimension) {
        this.dimension = dimension;
        return this;
    }
}